//
//  CYMyFollow_NoFollowTableViewCell.m
//  cyydt
//
//  Created by chu on 2019/1/26.
//  Copyright © 2019 chu. All rights reserved.
//

#import "CYMyFollow_NoFollowTableViewCell.h"

@implementation CYMyFollow_NoFollowTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.headImageView.layer.cornerRadius = self.headImageView.frame.size.height / 2;
    self.headImageView.layer.masksToBounds = YES;
}

- (void)setModel:(CYProjectModel *)model{
    _model = model;    
    [self.headImageView sd_setImageWithURL:[NSURL URLWithString:model.avatar] placeholderImage:[UIImage imageWithColor:[UIColor lightGrayColor] Size:self.headImageView.frame.size]];
    self.titleLabel.text = model.nickName;
    self.introLabel.text = model.cy_description;
    
}

- (IBAction)guanzhuAction:(UIButton *)sender {
    if (self.block) {
        self.block();
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
